<template>
  <div class="detail-tab-bar" @click="logout">
    <div class="detail-tab-bar-item">
      <div>退出登录</div>
    </div>
  </div>
</template>
<script>
export default {
  date() {
    return {};
  },
  components: {},
  methods: {
    logout() {
      console.log('退出登录')
      window.localStorage.clear();
      this.$router.push("/login");
      this.$Notify({ type: 'success', message: '退出登录' })
    }
  }
};
</script>
<style lang='scss' scoped>
.detail-tab-bar {
  display: flex;
  background-color: rgb(25, 137, 250);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  .detail-tab-bar-item {
    flex: 1;
    text-align: center;
    height: 1.3243rem;
    font-size: 0.3784rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    line-height: 1.2973rem;
  }
}
</style>